package org.dromara.bclt.domain.bo;

import org.dromara.bclt.domain.DataRealtime;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 手环-指标数据-实时测量业务对象 bclt_data_realtime
 *
 * @author meiyoudaan448
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DataRealtime.class, reverseConvertGenerate = false)
public class DataRealtimeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = {EditGroup.class })
    private Long deviceId;

    /**
     * 设备编号
     */
    private String deviceNumber;

    /**
     * 任务id
     */
//    @NotNull(message = "任务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 指标类型（心率、血氧、低压、高压）
     */
    private String dataType;

    /**
     * 指标值
     */
    @NotNull(message = "指标值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long dataValue;

    /**
     * 记录时间
     */
    private Date recordTime;


}
